package com.jin.spirng_boot_learn.Request;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;


@Data
public class StudentRequest {

    String name;
    Integer age;

    @NotNull(message="id not blank")
    @JsonProperty(value = "ID")
    String identity;

    private String FirstName; // 请求 首字符 小写
    private String secondName;

}
